package com.sunfeng.gulimall.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @Author : 清风冷影
 * @Description:  搜索微服务
 * @Date : 2021/8/6  9:42
 */

//@EnableRedisHttpSession
@EnableFeignClients(basePackages = "com.sunfeng.gulimall.search.feign")// 开启远程访问功能
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
public class GuLiMallSearchApplication {
    public static void main(String[] args) {
        SpringApplication.run(GuLiMallSearchApplication.class, args);
    }
}
